package com.chenjun.common.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/***
 * 
 * @Description: 排序分页面参数 
 * @author yanjinyin
 * @date 2017年7月15日 下午11:33:43
 */
@SuppressWarnings("serial")
public class DataGridModel implements java.io.Serializable {

	private int page = 1; // 当前页,名字必须为page
	private int start = 0;// 起始行
	private int rows = 10; // 每页大小,名字必须为rows
	private int end;// 分页每页最后一行
	private List<DataGridSortModel> sortBy = new ArrayList<DataGridSortModel>(0); // 排序规则
	private Map<String, Object> params = new HashMap<String, Object>(0);

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public List<DataGridSortModel> getSortBy() {
		return sortBy;
	}

	public void setSortBy(List<DataGridSortModel> sortBy) {
		this.sortBy = sortBy;
	}

	public Map<String, Object> getParams() {
		return params;
	}

	public void setParams(Map<String, Object> params) {
		this.params = params;
	}

	public int getEnd() {
		end = start + rows;
		return end;
	}

	public void setEnd(int end) {
		this.end = end;
	}
	/**
	 * @return needPage
	 */

}
